function roomTypeAdd() {
    let data = {};
    data.roomType = $("#roomType").val();
    data.href = $("#href").val();
    data.token =$.cookie("token");
    let result = myAjax('/back/roomType/roomTypeAdd','post',data);
    if (result === 1) {
        alert("添加成功！");
        //页面跳转，下面两种方式都可以
        // window.location.href="";
        $("#right").load('../back/roomType/roomTypeManage.html');//_blank 在新窗口中打开被链接文档。
    } else {
        alert("添加失败");
    }
}
function cancelRoomType() {
    $("#right").load('/back/roomType/roomTypeAdd.html');
}